From: Mattias EngdegÄrd Date: Sun, 3 Mar 2024 14:55:30 +0000 (+0100) Subject: ; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`. X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~14^2~18^2~2356 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2c2a15bd171ecbf87fdac4405c7ea5f567fcf38a;p=emacs.git ; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`. --- diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 99ac50c155a..ac7d55c8a46 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2353,7 +2353,7 @@ by `diff-refine-hunk'." (match-end 0) 'diff-refine-removed)) (goto-char middle) - (while (re-search-forward "^\\(?:+.*\n\\)+" end t) + (while (re-search-forward "^\\(?:\\+.*\n\\)+" end t) (diff--refine-propertize (match-beginning 0) (match-end 0) 'diff-refine-added))))))